package org.abacus.hibernate.outshineothers;

import org.hibernate.Session;

/**
 *
 * @author chaoyang.li
 * @since 2012-08-30
 */
public class HibernateSessionProvider extends org.abacus.hibernate.HibernateSessionProvider {

	public static final String hibernate_cfg_xml = "/hibernate/hibernate.cfg.xml";

	/**
	 * @author chaoyang.li
	 */
	public static synchronized void addTags() {
		addTag(hibernate_cfg_xml);
	}

	/**
	 * @author chaoyang.li
	 */
	public static synchronized Session getCurrentSession() {
		return getCurrentSession(hibernate_cfg_xml);
	}

	/**
	 * @author chaoyang.li
	 */
	public static synchronized void close() {
		close(hibernate_cfg_xml);
	}
}
